import { createApp } from 'vue'
import { createPinia } from 'pinia'

import App from './App.vue'
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
import zhCn from 'element-plus/es/locale/lang/zh-cn'
import router from './router'
import VueLazyload from 'vue-lazyload'

const app = createApp(App)

app.use(createPinia())
app.use(router)
app.use(ElementPlus, {
    locale: zhCn,
})
app.use(VueLazyload, {
    // 可以在这里设置一些默认配置，比如加载失败时的占位图片等
    preLoad: 1.3,
    error: 'path/to/error.jpg',
    loading: 'path/to/loading.gif'
})

app.mount('#app')
